package com.limit.annotation;

import com.limit.aspect.TokensAspect;
import lombok.NonNull;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 限流配置
 * @author hbz
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface TokenParamAnnotation {
    int thread() default 5;

    String msg() default "访问频率过高，请稍后再试！";
}
